<template>
  <page-body>
    <view class="page">
      <!---flex布局flex布局开始-->
      <view class="flex flex-wrap align-start benben-flex-layout Sequential_flex_0">
        <view class='flex flex-wrap align-center Sequential_fd0_0'>
          <view class='flex flex-wrap align-center'>
            <text class='fu-iconfont2  Sequential_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
              data-url="1">&#xe794;</text>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center Sequential_flex_1">
        <view class='flex flex-direction flex-wrap align-stretch justify-center flex-sub Sequential_fd1_0'>
          <view class='flex flex-wrap align-center justify-between Sequential_fd1_0_c0'>
            <view class='flex flex-direction flex-wrap align-center'>
              <text class='Sequential_fd1_0_c0_c0_c0'>{{list.no_topic}}</text>
              <text class='Sequential_fd1_0_c0_c0_c1'>未做题</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center'>
              <text class='Sequential_fd1_0_c0_c0_c0'>{{list.learn_topic}}</text>
              <text class='Sequential_fd1_0_c0_c0_c1'>已做题</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center'>
              <text class='Sequential_fd1_0_c0_c0_c0'>{{list.wrong}}</text>
              <text class='Sequential_fd1_0_c0_c0_c1'>错题</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center'>
              <view class='flex flex-wrap align-center'>
                <text class='Sequential_fd1_0_c0_c0_c0'>{{list.radio}}</text>
                <text class='Sequential_fd1_0_c0_c3_c0_c1'>%</text>
              </view>
              <text class='Sequential_fd1_0_c0_c0_c1'>正确率</text>
            </view>
          </view>
          <view class='flex flex-wrap align-end justify-center Sequential_fd1_0_c1'>
            <button class='Sequential_fd1_0_c1_c0' @tap.stop="ckisl"
              v-if=" list.learn_topic==0">开始练习</button>
            <button class='Sequential_fd1_0_c1_c0' @tap.stop="ckisl"
              v-if=" list.learn_topic!=0">继续练习</button>
            <button class='Sequential_fd1_0_c1_c2' @tap.stop="popupShow1724745646364=true">清空记录</button>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1724745646364" :mask="true" :mask-close-able="true" mode='center'
        :z-index='999999'>
        <!---flex布局flex布局开始-->
        <view class="flex benben-flex-layout flex-wrap align-center">
          <view class='flex flex-direction flex-wrap align-stretch justify-between Sequential_fd2_0'>
            <view class='flex flex-direction flex-wrap align-center justify-around Sequential_fd2_0_c0'>
              <text class='Sequential_fd2_0_c0_c0'>提示</text>
              <text class='Sequential_fd2_0_c0_c1'>是否确认清空记录？清空后
                将重新开始答题</text>
            </view>
            <view class='flex flex-wrap align-center justify-center Sequential_fd2_0_c1'>
              <view class='flex flex-wrap align-center justify-center Sequential_fd2_0_c1_c0'>
                <text class='Sequential_fd2_0_c1_c0_c0' @tap.stop="popupShow1724745646364=false">取消</text>
              </view>
              <view class='flex flex-wrap align-center justify-center Sequential_fd2_0_c1_c1'
                @tap.stop="getdl6ced17ad9333Func()">
                <text class='Sequential_fd2_0_c1_c1_c0'>确定</text>
              </view>
            </view>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>
      <benben-popup v-model="popupShow1725071055873" :mask="true" :mask-close-able="true" mode='center'
        :z-index='999999'>
        <!---flex布局flex布局开始-->
        <view class="flex benben-flex-layout flex-wrap align-center">
          <view class='flex flex-direction flex-wrap align-stretch justify-between Sequential_fd3_0'>
            <view class='flex flex-direction flex-wrap align-center justify-around Sequential_fd3_0_c0'>
              <text class='Sequential_fd3_0_c0_c0'>提示</text>
              <text class='Sequential_fd3_0_c0_c1'>是否开始练习？</text>
            </view>
            <view class='flex flex-wrap align-center justify-center Sequential_fd3_0_c1'>
              <view class='flex flex-wrap align-center justify-center Sequential_fd3_0_c1_c0'>
                <text class='Sequential_fd3_0_c1_c0_c0' @tap.stop="popupShow1725071055873 = false">取消</text>
              </view>
              <view class='flex flex-wrap align-center justify-center Sequential_fd3_0_c1_c1'>
                <text class='Sequential_fd3_0_c1_c1_c0' @tap.stop="navs">确定</text>
              </view>
            </view>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>


    </view>
  </page-body>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},


    data() {
      return {
        "popupShow1725071055873": false,
        "popupShow1724745646364": false,
        "list": {
          "no_topic": "",
          "learn_topic": "",
          "wrong": "",
          "radio": ""
        },
        "navType": ""
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.getff6cecf107d4eaFunc()
      let {
        navType
      } = options
      if (navType != undefined) this.navType = navType
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      ckisl(){

        if(this.list.no_topic==0){
            this.$message.info("当前练习暂无题目");
            return
        }
        this.popupShow1725071055873=true
      },
      navs() {
        this.popupShow1725071055873 = false
        uni.redirectTo({
          url: `/pages/examination/answer/answer?type=2&val=2&navType=${this.navType}`
        })
      },
      //查看顺序练习的统计信息
      async getff6cecf107d4eaFunc() {
        //请求方法
        //数据验证

        let datalist = await this.$api.post(global.apiUrls.post66cecf107d4ea, {

        });

        if (datalist.data.code != 1) {
          this.$message.info(datalist.data.msg);
          return
        }
        let infolist = datalist.data;
        this.list = infolist.data

      },
      //清空顺序练习记录
      async getdl6ced17ad9333Func() {
        //请求方法
        //数据验证

        let data66ced17ad9333 = await this.$api.post(global.apiUrls.post66ced17ad9333, {

        });

        if (data66ced17ad9333.data.code != 1) {
          this.$message.info(data66ced17ad9333.data.msg);
          return
        }
        let info66ced17ad9333 = data66ced17ad9333.data;
        this.getff6cecf107d4eaFunc()

        uni.showToast({
          title: '清除成功',
          mask: true,
          icon: 'none',
          duration: 1500
        });
        this.popupShow1724745646364 = false;
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F6F6F6;
    background-size: 100% auto;
  }

  .Sequential_flex_0 {
    background: url(image-path('44.png')) no-repeat;
    background-size: 100% auto;
    height: 500rpx;
    width: 100%;
    padding: 66rpx 32rpx 0rpx 32rpx;
    position: relative;
    margin: 0rpx 0rpx 0rpx 0rpx;
  }

  .Sequential_fd0_0_c0_c0 {
    font-size: 36rpx;
  }

  .Sequential_fd0_0 {
    width: 100%;
    margin: 21rpx 0rpx 0rpx 0rpx;
    height: 50rpx;
  }

  .Sequential_flex_1 {
    padding: 24rpx;
  }

  .Sequential_fd1_0_c1_c2 {
    background: rgba(248, 248, 250, 1);
    border-radius: 45rpx;
    width: 500rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: rgba(51, 51, 51, 1);
  }

  .Sequential_fd1_0_c1_c0 {
    background: rgba(225, 74, 64, 1);
    border-radius: 45rpx;
    width: 500rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: #fff;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .Sequential_fd1_0_c1 {
    height: 200rpx;
  }

  .Sequential_fd1_0_c0_c3_c0_c1 {
    font-size: 24rpx;
    line-height: 56rpx;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    margin: 0rpx 0rpx 8rpx 0rpx;
  }

  .Sequential_fd1_0_c0_c0_c1 {
    font-size: 24rpx;
    line-height: 33rpx;
    color: rgba(153, 153, 153, 1);
  }

  .Sequential_fd1_0_c0_c0_c0 {
    font-size: 40rpx;
    line-height: 56rpx;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    margin: 0rpx 0rpx 8rpx 0rpx;
  }

  .Sequential_fd1_0_c0 {
    width: 100%;
    margin: 0rpx 0rpx 56rpx 0rpx;
  }

  .Sequential_fd1_0 {
    background: #fff;
    height: 514rpx;
    width: 100%;
    border-radius: 32rpx;
    background-size: 100% auto;
    padding: 0rpx 52rpx 0rpx 52rpx;
    margin: -90rpx 0rpx 0rpx 0rpx;
    position: relative;
  }

  .Sequential_fd2_0_c1_c1_c0 {
    color: rgba(51, 51, 51, 1);
    font-size: 32rpx;
    line-height: 45rpx;
    font-weight: 500;
  }

  .Sequential_fd2_0_c1_c1 {
    width: 259rpx;
    height: 98rpx;
  }

  .Sequential_fd2_0_c1_c0_c0 {
    font-size: 32rpx;
    line-height: 44rpx;
    color: rgba(153, 153, 153, 1);
  }

  .Sequential_fd2_0_c1_c0 {
    border-right: 1px solid #eee;
    width: 259rpx;
    height: 98rpx;
  }

  .Sequential_fd2_0_c1 {
    height: 99rpx;
  }

  .Sequential_fd2_0_c0_c1 {
    margin: 0rpx 0rpx 0rpx 0rpx;
    font-size: 36rpx;
    color: #333;
    line-height: 50rpx;
    font-weight: 500;
    text-align: center;
  }

  .Sequential_fd2_0_c0_c0 {
    font-size: 32rpx;
    line-height: 44rpx;
    color: rgba(153, 153, 153, 1);
    font-weight: 800;
  }

  .Sequential_fd2_0_c0 {
    border-bottom: 1px solid #eee;
    height: 227rpx;
  }

  .Sequential_fd2_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 25rpx;
    width: 540rpx;
    height: 332rpx;
    background-size: 100% auto;
  }

  .Sequential_fd3_0_c1_c1_c0 {
    color: rgba(51, 51, 51, 1);
    font-size: 32rpx;
    line-height: 45rpx;
    font-weight: 500;
  }

  .Sequential_fd3_0_c1_c1 {
    width: 259rpx;
    height: 98rpx;
  }

  .Sequential_fd3_0_c1_c0_c0 {
    font-size: 32rpx;
    line-height: 44rpx;
    color: rgba(153, 153, 153, 1);
  }

  .Sequential_fd3_0_c1_c0 {
    border-right: 1px solid #eee;
    width: 259rpx;
    height: 98rpx;
  }

  .Sequential_fd3_0_c1 {
    height: 99rpx;
  }

  .Sequential_fd3_0_c0_c1 {
    margin: 0rpx 0rpx 030rpx 0rpx;
    font-size: 36rpx;
    color: #333;
    line-height: 50rpx;
    font-weight: 500;
  }

  .Sequential_fd3_0_c0_c0 {
    font-size: 32rpx;
    line-height: 44rpx;
    color: rgba(153, 153, 153, 1);
    font-weight: 800;
  }

  .Sequential_fd3_0_c0 {
    border-bottom: 1px solid #eee;
    height: 227rpx;
  }

  .Sequential_fd3_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 25rpx;
    width: 540rpx;
    height: 332rpx;
    background-size: 100% auto;
  }
</style>
